package xjc.java.generic.lesson2;



/**
 * Description:
 * <br/>Copyright (C), 2005-2008, Yeeku.H.Lee
 * <br/>This program is protected by copyright laws.
 * <br/>Program Name:
 * <br/>Date:
 * @author  Yeeku.H.Lee kongyeeku@163.com
 * @version  1.0
 */
public class A1 extends Apple<String>
{
	//正确重写了父类的方法，返回值与父类Apple<String>的返回值完全相同
	public String getInfo()
	{
		 return "子类" + super.getInfo();
	}
	/*
	//下面方法是错误的，重写父类方法时返回值类型不一致
	public Object getInfo()
	{
		 return "子类";
	}
	*/
}
